﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LiveFX.ResourceModel;

namespace LiveFrameworkExplorer.Plugins.ProfileEditor
{
    public class ProfileViewerPlugin : IPlugin, IPluginItem
    {
        private ILFEBase _lfeBase = null;

        #region IPlugin Members

        public void Init(ILFEBase lfeBase)
        {
            _lfeBase = lfeBase;
        }

        public List<Type> GetTypes()
        {
            return new List<Type>() { 
                typeof(ProfileResource)
            };
        }

        public string GetMenuItemLabel()
        {
            return "Profile Viewer";
        }

        public System.Drawing.Image GetMenuItemImage()
        {
            return LiveFrameworkExplorer.Properties.Resources.profile;
        }

        public bool CheckItem<TMeshItem, TResource>(object item)
            where TMeshItem : Microsoft.LiveFX.Client.LiveItem<TResource>, new()
            where TResource : Microsoft.LiveFX.ResourceModel.Resource, new()
        {
            return true;
        }

        public void OpenPlugin<TMeshItem, TResource>(object item, object parentItem)
            where TMeshItem : Microsoft.LiveFX.Client.LiveItem<TResource>, new()
            where TResource : Microsoft.LiveFX.ResourceModel.Resource, new()
        {
            var profile = (item as TMeshItem) as ProfileResource;
            System.Windows.Forms.MessageBox.Show("Under development !");
        }

        #endregion
    }
}
